<template>
  <div>
    <el-table :data="datas" border style="width: 100%" stripe class="elTable">
      <el-table-column prop="stuNo" label="编号" >
      </el-table-column>
      <el-table-column prop="stuName" label="姓名" >
      </el-table-column>
      <el-table-column prop="stuGender" label="性别" >
      </el-table-column>
      <el-table-column prop="colName" label="学院" >
      </el-table-column>
      <el-table-column prop="stuMajor" label="专业" >
      </el-table-column>
      <el-table-column prop="stuClass" label="班级" >
      </el-table-column>
      <el-table-column prop="stuPhone" label="联系方式" >
      </el-table-column>
      <el-table-column prop="stuEmail" label="邮箱" >
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini">编辑</el-button>
          <el-button size="mini" type="danger">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "teacher-student",
  props: ['datas'],
  data () {
    return {

    }
  }
}
</script>

<style lang="stylus" scoped>
.elTable >>> .cell {
  text-align: center;
}

.elTable {
  text-align: center;
}
</style>
